package com.example.module_web.adapter;


import android.util.Log;
import com.example.module_web.R;
import com.example.module_web.beans.WaterBox;
import com.example.module_web.viewholder.BindViewHolder;
import java.util.List;

/**
 * Created by ASUS on 2018/3/16.
 */

public class WaterBoxAdapter extends FormBAdapter<WaterBox> {
    private static final String TAG = "bug";
    public WaterBoxAdapter(int layoutRes, List<WaterBox> beans) {
        super(layoutRes, beans);
    }

    @Override
    protected void onBind(BindViewHolder holder, int position, WaterBox waterBox) {
        holder.setText(R.id.item_form_num,String.valueOf(waterBox.getNumber()))
                .setText(R.id.item_form_date,waterBox.getDate())
                .setText(R.id.item_form_fangke,String.valueOf(waterBox.getFangke()))
                .setText(R.id.item_form_liulan,String.valueOf(waterBox.getLiulan()))
                .setText(R.id.item_form_jiagou,String.valueOf(waterBox.getJiagou()))
                .setText(R.id.item_form_shoucang,String.valueOf(waterBox.getShoucang()))
                .setText(R.id.item_form_tingliu,String.valueOf(waterBox.getTingliu()));
    }
}
